<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://www.springframework.org/security/tags"
	prefix="security"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>成绩查询</title>
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#FFFFFF">
<html:form action="grade.do?method=query" method="post">
<table width="80%" border="0" align="center" cellpadding="0"
	cellspacing="1" class="tableline">
	<tr>
		<td height="60" colspan="2" align="center" bgcolor="#ffffff"
			class="STYLE4">历年成绩查询</td>
	</tr>
	<tr>
		<td width="32%" height="26" align="right" bgcolor="#ffffff">请输入身份证号码：</td>
		<td width="68%" height="26" bgcolor="#ffffff">&nbsp; 
			<html:text property="idCard"></html:text>
			<c:if test="${!empty idCardError}">
				<img src="images/error.png" width="15" height="15" />&nbsp;<font color="red">${idCardError }</font>			
			</c:if> 
		</td>
	</tr>
	<tr>
		<td height="26" align="right" bgcolor="#ffffff">请输入准考证号：</td>
		<td height="26" bgcolor="#ffffff">&nbsp;&nbsp;<html:text property="ticketNumber"></html:text>
		<html:submit value="查询成绩"></html:submit>
			<c:if test="${!empty ticketNumberError}">
				<img src="images/error.png" width="15" height="15" />&nbsp;<font color="red">${ticketNumberError }</font>			
			</c:if>
		</td>
	</tr>
	<tr>
		<td height="26" align="right" bgcolor="#ffffff">上机成绩：</td>
		<td height="26" bgcolor="#ffffff">&nbsp;&nbsp;${grade.zzsjcj }</td>
	</tr>
	<tr>
		<td height="26" align="right" bgcolor="#ffffff">笔试成绩：</td>
		<td height="26" bgcolor="#ffffff">&nbsp;&nbsp;${grade.zzbscj }</td>
	</tr>
	<tr>
		<td height="26" align="right" bgcolor="#ffffff">总成绩等级：</td>
		<td height="26" bgcolor="#ffffff">&nbsp;
		<font color="red">
		<c:choose>
			<c:when test="${grade.zcj == 0 }">不合格</c:when>
			<c:when test="${grade.zcj == 1 }">合格</c:when>
			<c:when test="${grade.zcj == 2 }">良好</c:when>
			<c:when test="${grade.zcj == 3 }">优秀</c:when>
		</c:choose>
		</font>
		</td>
	</tr>
	<tr>
		<td height="26" align="right" bgcolor="#ffffff">证书编号：</td>
		<td height="26" bgcolor="#ffffff">&nbsp;&nbsp;${grade.zsbh }</td>
	</tr>
	<tr>
		<td height="26" colspan="2" align="center" bgcolor="#ffffff">有<font
			face="宋体">证书编号表示已经通过考试,请向有关负责部门索要证书.</font></td>
	</tr>
	<tr>
		<td height="26" colspan="2" align="center" bgcolor="#ffffff"><font
			face="宋体" class="red14">注意:只能查询在本考点参加考试的考生成绩.</font></td>
	</tr>
</table>
</html:form>
</body>
</html>